﻿@model MvcShopping.Models.Member
@{Layout = null;}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Thirteen Shop</title>
    <meta name="keywords" content="" />
    <meta name="description" content="" />

    <link rel="stylesheet" href="~/tpl/static/css/bootstrap.min.css" type="text/css" media="all" />
    <link rel="stylesheet" href="~/tpl/static/css/jquery-ui.min.css" type="text/css" media="all" />
    <link rel="stylesheet" href="~/tpl/Admin/common/css/admin.css" type="text/css" />
    <link href="~/Content/alert.css" rel="stylesheet" />
    <style>
        #Url {
            display: none;
        }

        .black {
            color: black;
        }
        .cantClick {
        display:none;
        }
    </style>
    <script type="text/javascript" src="~/tpl/static/js/jquery-1.9.1.min.js"></script>
    <script type="text/javascript" src="~/tpl/static/js/bootstrap.min.js"></script>
    <script src="~/Scripts/alert.js"></script>
    <script type="text/javascript" src="~/tpl/static/js/jquery.artDialog.js?skin=aero"></script>
    <script type="text/javascript" src="~/tpl/static/js/iframeTools.js"></script>
    <script type="text/javascript" src="~/tpl/static/js/jquery.form.min.js"></script>
    <script type="text/javascript" src="~/tpl/static/js/jquery.validate.min.js"></script>
    <script language="javascript" src="~/tpl/static/js/jquery.imagePreview.js"></script>
    <script type="text/javascript" src="~/tpl/static/js/jquery-ui.min.js"></script>
    <script type="text/javascript" src="~/tpl/static/js/datepicker.js"></script>
    <script type="text/javascript" src="~/tpl/Admin/common/js/common.js"></script>
</head>


<body>
    <!--顶部-->
    <nav class="navbar navbar-inverse">
        <div class="container-fluid">
            <div class="navbar-header">
                <a class="navbar-brand" href="~/Home/index">Thirteen Shop后台管理</a>
            </div>

            <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
                <ul class="nav navbar-nav navbar-right">
                    <li>
                        <a href="~/Home/index" target="_blank"><i class="glyphicon glyphicon-home"></i> 网站首页</a>
                    </li>
                    <li class="dropdown">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false"><i class="glyphicon glyphicon-user"></i> 超级管理员【admin】 <span class="caret"></span></a>
                        <ul class="dropdown-menu" role="menu">
                            
                            <li>
                                <a href="~/Home/index">退出</a>
                            </li>
                        </ul>
                    </li>
                </ul>
            </div>
            <!-- /.navbar-collapse -->
        </div>
        <!-- /.container-fluid -->
    </nav>
    <!--顶部结束-->
    <div class="container-fluid">
        <div class="row">
            <div class="col-md-2">
                <div id="nav">
                    <p id="p_home"><i class="glyphicon glyphicon-home"></i> 首页</p>
                    <p id="p_article"><i class="glyphicon glyphicon-list-alt"></i> 商品管理</p>
                    <div class="menu_body" id="b_article">
                        <li>
                            <a href="Add"><i class="glyphicon glyphicon-menu-right"></i> 添加商品</a>
                        </li>
                        <li>
                            <a href="index"><i class="glyphicon glyphicon-menu-right"></i> 商品列表</a>
                        </li>
                    </div>

                    <p id="p_user"><i class="glyphicon glyphicon-user"></i> 用户管理</p>
                    <div class="menu_body" id="b_user">
                        <li>
                            <a href="~/AdminMember/Add"><i class="glyphicon glyphicon-menu-right"></i> 添加用户</a>
                        </li>
                        <li>
                            <a href="~/AdminMember/index"><i class="glyphicon glyphicon-menu-right"></i> 用户列表</a>
                        </li>
                        <li>
                            <a href="~/AdminRegister/addMember"><i class="glyphicon glyphicon-menu-right"></i> 新增管理员</a>
                        </li>
                    </div>
                    <p id="p_sys"><i class="glyphicon glyphicon-cog"></i> 订单管理</p>
                    <div class="menu_body" id="b_sys">
                        <li>
                            <a href="~/Admin/AdminOrder">查看订单</a>
                        </li>

                    </div>
                    <p id="p_sys"><i class="glyphicon glyphicon-adjust"></i> 类别管理</p>
                    <div class="menu_body" id="b_sys">
                        <li>

                            <a href="~/ProductCategories/Create">查看与添加</a>
                        </li>

                    </div>
                    <p id="p_sys"><i class="glyphicon glyphicon-cog"></i> 日志管理</p>
                    <div class="menu_body" id="b_sys">
                        <li>
                            <a href="~/Logs/Index">查看日志</a>
                        </li>

                    </div>
                </div>
            </div>

            <div class="col-md-10">

                <script type="text/javascript">
                    $(document).ready(function () {
                        $(".preview").preview();
                    });

                    function jumpUrl() {
                        v = document.getElementById("path").options[document.getElementById("path").selectedIndex].value;
                        url = "/index.php?g=admin&m=article&a=index&path=" + v;
                        window.location.href = url;
                    }
                </script>

                <ol class="breadcrumb">
                    <li>
                        <a href="javascript:;">用户管理</a>
                    </li>
                    <li>
                        <a href="~/Admin/Index">用户列表</a>
                    </li>
                    <li class="active">修改“@Model.Name”用户信息</li>
                </ol>
                <form action="/AdminMember/Edita" method="post" class="form-horizontal form-validata">

                    @Html.ValidationSummary(true)
                    @Html.HiddenFor(model => model.Id)
                    <div class="form-group">
                        <label class="col-md-1 control-label" for="cid">@Html.LabelFor(model => model.Email)</label>
                        <div class="col-md-11">
                            <input type="text" disabled value="@Model.Email" class="form-control" />
                            @*@Html.EditorFor(model => model.Email, new { htmlAttributes = new { @class = "form-control cantClick" } })
    @Html.ValidationMessageFor(model => model.Email)*@
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-md-1 control-label" for="title">@Html.LabelFor(model => model.Password)</label>
                        <div class="col-md-11">
                            @Html.EditorFor(model => model.Password, new { htmlAttributes = new { @class = "form-control" } })
                            @Html.ValidationMessageFor(model => model.Password)
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-md-1 control-label" for="keywords">@Html.LabelFor(model => model.Name)</label>
                        <div class="col-md-11">
                            @Html.EditorFor(model => model.Name, new { htmlAttributes = new { @class = "form-control" } })
                            @Html.ValidationMessageFor(model => model.Name)
                        </div>
                    </div>
                   
                    <div class="form-group">
                        <label class="col-md-1 control-label" for="keywords">@Html.LabelFor(model => model.Nickname)</label>
                        <div class="col-md-11">
                            @Html.EditorFor(model => model.Nickname, new { htmlAttributes = new { @class = "form-control" } })
                            @Html.ValidationMessageFor(model => model.Nickname)
                        </div>
                    </div>

                    <div class="form-group">
                        <div class="col-md-11 col-sm-offset-1">
                            <input type="submit" id="alert-btn11" class="btn btn-warning" value="保存修改" />
                        </div>
                    </div>
                </form>


                <div style="float:right;margin:10px 20px;">
                    @Html.ActionLink("返回", "Index")
                </div>
                <script type="text/javascript">
                        $("#path").val("");
                </script>

            </div>
        </div>

    </div>

    <script type="text/javascript">
                       
                        var M = {

                        }
                        $(document).delegate("#alert-btn11", 'click', function () {
                            if (M.dialog11) {
                                return M.dialog11.show();
                            }
                            M.dialog11 = jqueryAlert({
                                'icon': '~/images/alert/right.png',
                                'content': '您已成功修改用户 @Model.Name',
                                'closeTime': 1000,
                            })
                        });
                    $(document).ready(function () {
                        //幻灯片元素与类“menu_body”段与类“menu_head”时点击
                        var menu_action = $("#menu_action").val();
                        $("#p_" + menu_action).addClass("select");
                        $("#b_" + menu_action).show().addClass("local");

                        $("#nav p").click(function () {
                            $(this).next("div.menu_body").slideToggle(300).siblings("div.menu_body").slideUp("slow");
                            $("#nav p").removeClass("select");
                            $(this).addClass("select");
                            $(this).next("div.menu_body").addClass("local");
                        });

                        $("#picname_src").click(function () {
                            $("#picname").click();
                            $("#Url").val($("#picname").val());
                        })
                    });
    </script>

</body>

</html>
@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}

@{
    ViewBag.Title = "修改用户信息";
}